package cn.stylefeng.guns.modular.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.stylefeng.guns.modular.finance.entity.FinancePurchaseSettlementOrderEntity;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * @author allen
 * @version 1.0
 * @date 2021/4/11 23:12
 */
@Mapper
public interface FinancePurchaseSettlementOrderMapper extends BaseMapper<FinancePurchaseSettlementOrderEntity> {
    int updateBatch(List<FinancePurchaseSettlementOrderEntity> list);

    int updateBatchSelective(List<FinancePurchaseSettlementOrderEntity> list);

    int batchInsert(@Param("list") List<FinancePurchaseSettlementOrderEntity> list);

    int insertOrUpdate(FinancePurchaseSettlementOrderEntity record);

    int insertOrUpdateSelective(FinancePurchaseSettlementOrderEntity record);

    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(FinancePurchaseSettlementOrderEntity record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(FinancePurchaseSettlementOrderEntity record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    FinancePurchaseSettlementOrderEntity selectByPrimaryKey(Long id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(FinancePurchaseSettlementOrderEntity record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(FinancePurchaseSettlementOrderEntity record);
}